package cn.cloud9.designpattern.dp05proxy.proxy_03_jdk_dynamic.proxy_jdk;

import cn.cloud9.designpattern.dp05proxy.proxy_01_static.Personal;
import cn.cloud9.designpattern.dp05proxy.proxy_01_static.Tenement;

/**
 * @author OnCloud9
 * @description
 * @project Java
 * @date 2022年05月23日 22:39
 */
public class Test {

    public static void main(String[] args) {
        final MyHandler myHandler = new MyHandler();
        final Tenement instance = myHandler.getInstance(new Personal());
        instance.rentHouse();

    }
}
